package com.edisoncgh.service.impl;

import com.edisoncgh.mapper.ArtTagMapper;
import com.edisoncgh.pojo.ArtTag;
import com.edisoncgh.service.ArtTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArtTagServiceImpl implements ArtTagService {
    @Autowired
    ArtTagMapper artTagMapper;

    @Override
    public ArtTag selectByArticleId(Integer art_id) {
        return artTagMapper.selectByArtId(art_id);
    }

    @Override
    public boolean insert(ArtTag artTag) {
        return artTagMapper.insert(artTag) > 0;
    }
}
